package ro.training.date;

import java.util.StringTokenizer;
import java.util.Date;

public class DateT {

	String day;
	String month;
	String year;
	
	public DateT(){
	
		StringTokenizer token = new StringTokenizer(new Date().toString());
		day = token.nextToken();
		month = token.nextToken();
		year = token.nextToken();
		}
	
	public void showDate(){
		System.out.println("date is: " + day+ " " + " " + month + " " + year);
		}
		
}
